#include<stdio.h>
int main()
{
	int i = 0;
	int a[10] = { 0 };
	for (i=0;i<=9;i++)
	{
		scanf_s("%d", &a[i]);
	}
	int min = a[0],max=a[0];
	for (i = 1; i <= 9; i++)
	{
		if (a[i] <= min)
			min = a[i];
		if (a[i] >= max)
			max = a[i];
	}
	printf("min=%d,max=%d",min,max);
	return 0;
}